package com.example.bili.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.view.PagerAdapter;

import java.util.List;

/**
 * Created by nange on 2017/3/17.
 */

public class ParttionFanjuAdapter extends FragmentPagerAdapter {
    private List<Fragment> fanju_fragment_list;
    public ParttionFanjuAdapter(FragmentManager fm,List<Fragment> fanju_fragment_list) {
        super(fm);
        this.fanju_fragment_list=fanju_fragment_list;
    }

    @Override
    public Fragment getItem(int position) {
        return fanju_fragment_list.get(position);
    }

    @Override
    public int getCount() {
        return fanju_fragment_list.size();
    }
}
